{{csrf_field()}}
<div class="layui-form-item">
    <label for="" class="layui-form-label">名称</label>
    <div class="layui-input-inline">
        <input type="text" name="ad_title" value="{{old('ad_title')}}" lay-verify="required" placeholder="请输入名称" class="layui-input layui-width-300">
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">超链接</label>
    <div class="layui-input-inline">
        <input type="text" name="ad_url" value="{{old('ad_url')}}" lay-verify="" placeholder="请输入跳转地址" class="layui-input layui-width-300">
    </div>
    <div class="layui-form-mid layui-word-aux layui-margin-120">请输入完整的链接 例:http://www.enet360.com</div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">广告图</label>
    <div class="layui-input-inline">
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="uploadPic">上传</button>
            <div class="layui-upload-list">
                <ul id="layui-upload-box" class="layui-clear">

                </ul>
                <input type="hidden" name="thumb" id="thumb" value=""/>
            </div>
        </div>
    </div>
    <div class="layui-form-mid layui-word-aux">推荐上传图片大小不超过50k</div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">有效期</label>
    <div class="layui-input-inline">
        <input type="text" name="yxq_time" lay-verify="required" lay-mintime="{{date('Y-m-d',time())}}"  class="layui-input enet_daterange_limit layui-width-300"  placeholder=" - ">
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">作者年月日</label>
    <div class="layui-input-inline">
        <input type="text" name="author_date" lay-verify="required"   class="layui-input enet_datetime layui-width-300"  placeholder=" - ">
    </div>
</div>

<div class="layui-form-item" id="area-picker">
    <div class="layui-form-label">省市区联动</div>
    <div class="layui-input-inline" style="width: 200px;">
        <select name="province" class="province-selector" data-value="北京市" lay-filter="province-1">
            <option value="">请选择省</option>
        </select>
    </div>
    <div class="layui-input-inline" style="width: 200px;">
        <select name="city" class="city-selector" data-value="北京市" lay-filter="city-1">
            <option value="">请选择市</option>
        </select>
    </div>
    <div class="layui-input-inline" style="width: 200px;">
        <select name="county" class="county-selector" data-value="东城区" lay-filter="county-1">
            <option value="">请选择区</option>
        </select>
    </div>
</div>


<div class="layui-form-item">
    <label for="" class="layui-form-label">状态</label>
    <div class="layui-input-inline">
        <input type="radio" name="status" value="1" title="正常" checked="">
        <input type="radio" name="status" value="2" title="禁用">
    </div>
</div>


<div class="layui-form-item">
    <label for="" class="layui-form-label">广告描述</label>
    <div class="layui-input-inline" style="width: 300px;">
        <textarea name="content"  lay-verify="" placeholder="请输入" class="layui-textarea layui-width-300">{{old('content')}}</textarea>
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">关键字</label>
    <div class="layui-input-inline" style="width: 300px;">
        <textarea name="keyword"  lay-verify="" placeholder="请输入" class="layui-textarea layui-width-300">{{old('keyword')}}</textarea>
    </div>
    <div class="layui-form-mid layui-word-aux">多个关键字用|分隔</div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">详情</label>
    <div class="layui-input-inline layui-width-750">
        <textarea name="ad_content" class="enet360_kind_editor" style="width:100%;height:400px;"></textarea>
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">详情id</label>
    <div class="layui-input-inline layui-width-750">
        <textarea  class="layui-textarea wy-edit" id="ad_content2" name="ad_content2" placeholder=""></textarea>
    </div>
</div>






<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
        <a class="layui-btn" lay-href="{{route('admin.ad.index')}}">返 回</a>
    </div>
</div>